package com.yokit.c2c.service;

import com.yokit.c2c.mapper.ShopMapper;
import com.yokit.c2c.pojo.Shop;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author fengzeng
 * @create 2021/6/15 16:21
 */
@Service
public class ShopService {

  @Resource
  private ShopMapper shopMapper;


  public Shop selectShopByUserId(Integer userId) {
    return shopMapper.selectByUserId(userId);
  }

  public void createShop(Shop shop) {
    shopMapper.insertSelective(shop);
  }
}
